Skip to content

2278 remove user title from sumobot #6600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions kitsune/forums/jinja2/forums/includes/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@
<div class="asked-by">
<a class="author-name" rel="nofollow" href="{{ profile_url(post.author) }}">
<span class="display-name">{{ display_name(post.author) }}</span>
{# L10n: {0} is the number of posts. #}
<span
class="user-title">{{ ngettext('1 post', '{0} posts', post.author_post_count)|f(post.author_post_count) }}</span>
{% if not post.author.profile.is_system_account %}
{# L10n: {0} is the number of posts. #}
<span class="user-title">
{{ ngettext('1 post', '{0} posts', post.author_post_count)|f(post.author_post_count) }}
</span>
{% endif %}
</a>

</div>
Expand Down
13 changes: 8 additions & 5 deletions kitsune/kbforums/jinja2/kbforums/includes/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
<div class="asked-by">
<a class="author-name" rel="nofollow" href="{{ profile_url(post.creator, request.user == post.creator) }}">
<span class="display-name">{{ display_name(post.creator) }}</span>
{# L10n: {0} is the number of posts. #}
{% with count = post.creator.post_set.count() %}
<span class="user-title">{{ ngettext('1 post', '{0} posts', count)|f(count) }}</span>
{% endwith %}
{% if not post.creator.profile.is_system_account %}
{# L10n: {0} is the number of posts. #}
{% with count = post.creator.post_set.count() %}
<span class="user-title">
{{ ngettext('1 post', '{0} posts', count)|f(count) }}
</span>
{% endwith %}
{% endif %}
</a>

</div>
<span class="asked-on">
{{ datetimeformat(post.created, format='longdatetime') }}
Expand Down